home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Cafe 3
/
Visual Cafe 3.ISO
/
Vcafe
/
Main.bin
/
Lease.java
< prev
next >
Wrap
Text File
|
1998-09-22
|
1KB
|
52 lines
/*
* @(#)Lease.java 1.3 98/07/01
*
* Copyright 1995-1998 by Sun Microsystems, Inc.,
* 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
* All rights reserved.
*
* This software is the confidential and proprietary information
* of Sun Microsystems, Inc. ("Confidential Information"). You
* shall not disclose such Confidential Information and shall use
* it only in accordance with the terms of the license agreement
* you entered into with Sun.
*/
package java.rmi.dgc;
/**
* A lease contains a unique VM identifier and a lease duration. A
* Lease object is used to request and grant leases to remote object
* references.
*/
public final class Lease implements java.io.Serializable {
private VMID vmid;
private long value;
/**
* Constructs a lease with a specific VMID and lease duration. The
* vmid may be null.
*/
public Lease(VMID id, long duration)
{
vmid = id;
value = duration;
}
/**
* Returns the client VMID associated with the lease.
*/
public VMID getVMID()
{
return vmid;
}
/**
* Returns the lease duration.
*/
public long getValue()
{
return value;
}
}